package com.example.interfaces.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 登录请求
 */
@Data
@Schema(description = "登录请求")
public class LoginRequest {
    
    @Schema(description = "登录标识符（用户名/手机号/邮箱）")
    private String identifier;
    
    @Schema(description = "密码")
    private String password;
    
    @Schema(description = "手机号")
    private String phone;
    
    @Schema(description = "短信验证码")
    private String smsCode;
    
    @NotBlank(message = "登录类型不能为空")
    @Schema(description = "登录类型：miniprogram-小程序，h5-H5")
    private String loginType;
    
    @NotBlank(message = "登录方式不能为空")
    @Schema(description = "登录方式：password-密码登录，sms-短信登录")
    private String loginMethod;
}